package com.situ.week1.day1;

import org.junit.Test;

public class test {
//    main
    public static void main(String[] args) {
//        sout
        System.out.println();
    }
    @Test
    public void test1() {
        int num23$ = 3;
        System.out.println(num23$);
        int age1 = 3;
        age1 = 55;
        System.out.println(age1);
        final int age2 = 23;
        System.out.println(age2);
    }
    @Test
    public void test2(){
        char ch = 'a';//97
        System.out.println(ch);
        System.out.println(ch + 1);
        System.out.println(ch + 2);
        System.out.println((char)(ch + 1));
        System.out.println((char)(ch + 2));
        double d = 3.14;
        int num = (int)d;
        System.out.println(num);
    }
    @Test
    public void test3() {
        System.out.println("hello.test2");
        int num1 = 3;
        int num2 = 5;
        int result = num1 + num2;
        System.out.println(result);
        System.out.println(num1 - num2);
        System.out.println(num1 * num2);
        System.out.println(num1 / num2);
        System.out.println(num1 % num2);

        System.out.println(8 / 2);
        System.out.println(8 % 2);
        System.out.println(8 / 5);
        System.out.println(8 % 5);
    }
    @Test
    public void test4() {
        int i = 1;
        i++;
        System.out.println(i);
        System.out.println(i++);
        System.out.println(i);
        System.out.println(++i);
    }
    @Test
    public void test5() {
        System.out.println(3 >= 5);
        System.out.println(5 < 10);
        System.out.println(5 == 10);
        System.out.println(5 <= 10);
        int num1 = 3;
        int num2 = 5;
        System.out.println(num1 != num2);

        boolean bool1 = num1 != num2;
        System.out.println(bool1);
        boolean bool2 = 3 >= 5;
        System.out.println(bool2);
    }
    @Test
    public void test6() {
        int socre1 = 78;
        int socre2 = 390;
        boolean result1 = (socre1 >= 60) && (socre2 >= 400);
        System.out.println(result1);
        boolean result2 = (socre1 >= 60) || (socre2 >= 400);
        System.out.println(result2);

//        3
        int num1 = 3;
        int num2 = 5;
        System.out.println(num1 < 0 && num1++ <num2);
        System.out.println(num1);
        System.out.println(num2);

//        4
        System.out.println(num1 > 0 || num1++ < num2);
        System.out.println(num1);
        System.out.println(num2);
    }
}
